<template>
  <div class="block">
    <el-pagination
      background
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page.sync="currentPage3"
      :page-size="100"
      layout="prev, pager, next, jumper"
      :total="1000"
    ></el-pagination>
    <span class="demonstration active2">跳转</span>
  </div>
</template>

<script>
export default {
  methods: {
    handleSizeChange(val) {
      window.console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      window.console.log(`当前页: ${val}`);
    }
  },
  data() {
    return {
      currentPage3: 1
    };
  }
};
</script>

<style scoped>
.block {
  text-align: center;
  margin-bottom: 40px;
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #498e3d;
}
.el-pagination {
  display: inline-block;
}
.demonstration {
  background: #f08200;
  display: inline-block;
  color: #fff;
  padding: 3px 9px;
  position: relative;
  top: 6px;
}
</style>
